#define _CRT_SECURE_NO_WARNINGS

#include <iostream>
using namespace std;
#include <string>

class Person {
	friend ostream& operator<<(ostream& cout, Person& p);
public:
	Person(int p1, int p2);
private:
	int p1;
	int p2;
};

Person::Person(int p1, int p2) {
	this->p1 = p1;
	this->p2 = p2;
}

ostream& operator<<(ostream& cout, Person& p) {
	cout << p.p1 << endl << p.p2 << endl;
	return cout;
}

int main04() {
	Person p(1, 2);
	cout << p << endl;

	return 0;
}